package ba.jamax.ralfdb.persistence.repository.generic;

import java.util.List;
import java.util.Map;

import org.hibernate.criterion.Order;

public interface GenericRepository<T> {
    List<T> findByCriteria(Map<String, Object> criterias, boolean strict, int firstResult, int maxResults, Order order);
    int countByCriteria(Map<String, Object> criteriaMap, boolean strict);

    T findById(Long id);
	Long addNew(T t);	
	void delete(T t);
	void update(T t);
}
